import request from '@/utils/request'
export default {
  list() {
    return request({
      url: '/api/core/customer/index',
      method: 'get'
    })
  },
  removeById(id) {
    return request({
        url: `/api/core/customer/remove/${id}`,
        method: 'delete'
    })
  },
  save(customer) {
    return request({
        url: '/api/core/customer/save',
        method: 'post',
        data: customer
    })
  }
}